<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
         $s=array("name"=>"张三","age"=>20,"sex"=>"男");
         $students=array(
                         array("name"=>"张三","age"=>20,"sex"=>"男"),
                         array("name"=>"李四","age"=>21,"sex"=>"男"),
                         array("name"=>"王五","age"=>20,"sex"=>"男"),
                         array("name"=>"赵六","age"=>20,"sex"=>"女"),
                         array("name"=>"陈七","age"=>20,"sex"=>"男")
             
         );
         
         echo ("<table border='1'>");
         foreach($students as $v)
         {
            echo "<tr>";
            echo "<td>{$v['name']}</td>";
            echo "<td>{$v['age']}</td>";
            echo "<td>{$v['sex']}</td>";
            echo "</tr>";
            
         }
         echo ("</table>");
         
         
        ?>
    </body>
</html>
